package cn.edu.hbsi.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "spring.jdbc.datasource")
public class DataSourceProperties
{
//    @Value("${spring.jdbc.datasource.driver-class-name}")
    private String driverClassName;
//    @Value("${spring.jdbc.datasource.url}")
    private String url;
//    @Value("${spring.jdbc.datasource.username}")
    private String username;
//    @Value("${spring.jdbc.datasource.password}")
    private String password;
}